import { Component, OnInit, ViewChild } from '@angular/core';
import { UserListComponent } from '../user-list/user-list.component';

@Component({
  selector: 'app-user-view',
  templateUrl: './user-view.component.html',
  styleUrls: ['./user-view.component.less'],
})
export class UserViewComponent implements OnInit {
  /**
   * 详情组件
   */
  @ViewChild('userListComponent', null)
  userListComponent: UserListComponent;

  constructor() {}

  ngOnInit() {}

  /**
   * 新增
   */
  add(): void {
    this.userListComponent.create();
  }
}
